package cn.oms.file.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("file_template")
@ApiModel(value="Template对象", description="")
public class Template implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件模板ID（新增生成）（UUID）")
    @TableField("ID")
    private String id;

    @ApiModelProperty(value = "模板名称")
    @TableField("TEMPLATE_NAME")
    private String templateName;

    @ApiModelProperty(value = "模板创建人ID（对应用户表用户ID）")
    @TableField("TEMPLATE_CREATE_MAN_ID")
    private String templateCreateManId;

    @ApiModelProperty(value = "模板创建人角色")
    @TableField("TEMPLATE_CREATE_MAN_ROLE")
    private String templateCreateManRole;

    @ApiModelProperty(value = "模板创建人姓名")
    @TableField("TEMPLATE_CREATE_MAN_NAME")
    private String templateCreateManName;

    @ApiModelProperty(value = "文件备注（存模板的名称）")
    @TableField("FILE_REMARK")
    private String fileRemark;

    @ApiModelProperty(value = "文件类型（0头像、1excel、pdf）")
    @TableField("FILE_TYPE")
    private Integer fileType;

    @ApiModelProperty(value = "文件名称")
    @TableField("FILE_NAME")
    private String fileName;

    @ApiModelProperty(value = "文件后缀")
    @TableField("FILE_SUFFIX")
    private String fileSuffix;

    @ApiModelProperty(value = "文件存储地址")
    @TableField("FILE_LOCAL_STORAGE_LOCATION")
    private String fileLocalStorageLocation;

    @ApiModelProperty(value = "前端访问地址")
    @TableField("FILE_WEB_ACCESS_ADDRESS")
    private String fileWebAccessAddress;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
